{if $config.reg eq 1 }

  <div id="user">

    {if $user.id ne ""}
              
      <p > {$lang.welcome_back} {$user.name} {$user.last_name} </p>
      <div style="text-align:center; margin:10px;">
        <a href="?act=reg">{$lang.view_profile}</a> &nbsp;&nbsp;|&nbsp;&nbsp; <a href="?act=reg&action={$lang.logout_button}">{$lang.logout_button}</a>
      </div>
    {else}    
      <p >{$lang.login_message}

        <a href="?act=reg&showReg=true;" >{$lang.register_button}</a>
      </p>  
      <form action="?act=reg" method="post" id="loginForm">
        <input type="hidden" name="return" value="{$smarty.get.return}" />
        <table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td>{$lang.email}:</td>
            <td><input type="text" name="email" class="required email" value="{$smarty.post.email}"/></td>
          </tr>
          <tr>
            <td>{$lang.password}:</td>
            <td><input type="password" name="password" class="required" /></td>
          </tr>
          <tr>
            <td  colspan="2" >
              <input type="submit" name="action" value="{$lang.login}" />
              <a href="?act=password">{$lang.reset_password}</a>
            </td>
          </tr>
        </table>
      </form>   
             
    {/if}

  </div> 

{/if} {* if config.reg *}
